﻿@page
@model WXWorkSvc.Private.Areas.Pages.Setup.User.IndexModel
@{
    ViewData["Title"] = "用户";
    var rowIndex = 1;
}
<nav aria-label='breadcrumb'>
    <ol class='breadcrumb'>
        <li class='breadcrumb-item active' aria-current='page'>@ViewBag.Title</li>
    </ol>
</nav>
<table class="table table-striped">
    <thead>
        <tr>
            <th>#</th>
            <th>@Html.DisplayNameFor(ii => ii.Items[0].UserId)</th>
            <th>@Html.DisplayNameFor(ii => ii.Items[0].UserName)</th>
            <th>@Html.DisplayNameFor(ii => ii.Items[0].Roles)</th>
            <th>@Html.DisplayNameFor(ii => ii.Items[0].Ext)</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.Items)
        {
            <tr>
                <td>@(rowIndex++)</td>
                <td>@Html.DisplayFor(ii => item.UserId)</td>
                <td>@Html.DisplayFor(ii => item.UserName)</td>
                <td>@Html.DisplayFor(ii => item.RoleNames)</td>
                <td>@Html.DisplayFor(ii => item.Ext)</td>
                <td><a asp-page="./Edit" asp-route-id="@item.UserId">编辑</a></td>
            </tr>
        }
    </tbody>
</table>
